package com.example.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Picture {
   @TableId(type = IdType.AUTO)
   private Long id; //图片Id
   private long uid; //发表图片的用户Id
   private String type;  // 图片分类
   private String path; //图片地址
   private String description; //图片描述
   private long statue; //图片审核状态
   private String time; //图片上传时间
   @TableField(exist = false)
   private Integer index; //分页获取下标
}
